const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('diskAPI', {
  getDisks: () => ipcRenderer.invoke('get-disks'),
  offlineDisks: (ids) => ipcRenderer.invoke('offline-disks', ids),
  onlineDisks: (ids) => ipcRenderer.invoke('online-disks', ids)
});
